package com.ljm.shirojwt.service.serviceImpl;

import com.ljm.shirojwt.entity.User;
import com.ljm.shirojwt.mapper.UserMapper;
import com.ljm.shirojwt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service("userService")
@Transactional
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public User getByUsername(String username) {
        return userMapper.getByUsername(username);
    }

    @Override
    public List<User> listUser() {
        return userMapper.listUser();
    }


}
